<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="engineerList" checkbox="false" fitColumns="false" title="联系表"  onDblClick="dbClick"
			actionUrl="zyInspectionPlanController.do?chooseEngineerDatagrid${params }" idField="id" fit="true" queryMode="group" >
			<t:dgCol title="工程师表ID"	field="id"  	hidden="true"  queryMode="single"  width="120"></t:dgCol>
			<t:dgCol title="名字"	field="name"    	queryMode="single"	query="true"	width="120"></t:dgCol>
			<t:dgCol title="手机"	field="cellphone"	queryMode="single"  query="true"	width="120"></t:dgCol>
			<t:dgCol title="email"	field="email"		queryMode="single"  query="true"	width="240"></t:dgCol>
		</t:datagrid>
	</div>
</div>
<script type="text/javascript">
function dbClick(index,data){
	$("#engineerId",top.myWindow.document).val(data.id);
	$("#engineerName",top.myWindow.document).val(data.name);
	$("#email",top.myWindow.document).html(data.email);
	if(top.myWindow && $("#engineerCellPhone",top.myWindow.document)){
		$("#engineerCellPhone",top.myWindow.document).val(data.cellphone);
	}
	frameElement.api.close();
}

</script>
